#登录请求获取token
import requests,pytest
@pytest.fixture(scope='module')
def login_token():
    url= 'http://10.40.92.245:8081/api/front/login'
    headers={'Content-Type': 'application/json'}
    data = {
        "account": "18292417675",
	    "password": "crmeb@123456"
    }
    response = requests.post(url, json=data,headers=headers)
    token = str(response.json()['data']['token'])
    return token
